package XML;

/**
 * 
 *class UserXML represent a xml object that contains all the data of the user account
 *
 */
public class UserXML {
	
	private String userID; //the user id- user name
	private String password; //user password
	private String dropboxPath; //the path of the dropbox folder
	private String dbUser; //user in sql
	private String dbPassword; //password in sql
	
	/**
	 * default ctor
	 */
	public UserXML() {}
	
	/**
	 * ctor
	 * @param userID the user id- user name
	 * @param password user password
	 * @param dropboxPath the path of the dropbox folder
	 * @param dbUser user in sql
	 * @param dbPassword password in sql
	 */
	public UserXML(String userID, String password, String dropboxPath, String dbUser, String dbPassword) {
		// TODO Auto-generated constructor stub
		this.userID = userID;
		this.password = password;
		this.dropboxPath = dropboxPath;	
		this.dbUser = dbUser;
		this.dbPassword = dbPassword;
	}
	
	/**
	 * 
	 * @return the userID
	 */
	public String getUserID() {
		return userID;
	}
	
	/**
	 * 
	 * @return the user password
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * 
	 * @return the path of the dropbox folder
	 */
	public String getDropboxPath() {
		return dropboxPath;
	}
	
	/**
	 * 
	 * @return the sql user
	 */
	public String getDbUser() {
		return dbUser;
	}
	
	/**
	 * 
	 * @return the sql password
	 */
	public String getDbPassword() {
		return dbPassword;
	}
	
	/**
	 * 
	 * @param userID a userID
	 */
	public void setUserID(String userID) {
		this.userID = userID;
	}
	
	/**
	 * 
	 * @param password the user password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	/**
	 * 
	 * @param dropboxPath the path of the user dropbox
	 */
	public void setDropboxPath(String dropboxPath) {
		this.dropboxPath = dropboxPath;
	}
	
	/**
	 * 
	 * @param dbUser the sql's user
	 */
	public void setDbUser(String dbUser) {
		this.dbUser = dbUser;
	}
	
	/**
	 * 
	 * @param dbPassword the sql password
	 */
	public void setDbPassword(String dbPassword) {
		this.dbPassword = dbPassword;
	}
	
	/**
	 * prints the details on the account
	 */
	public String toString()
	{
		return "userID " + userID + " password " + password + " dropboxPath " + dropboxPath;
	}

}
